﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RPGSoundmixerGUI.Forms.Interface;
using RPGSoundmixerGUI.Forms.Events;

namespace RPGSoundMixerGUI.Test.StubsNMocks {
    class MainFormStub: IMainForm {

        /// <summary>
        /// Liste mit allen im GUI angezeigten Tabs
        /// </summary>
        public List<TabView> showedTabs { get; set; }

        public List<TabView> addedTabs { get; set; }

        public MainFormStub() {
            this.showedTabs = new List<TabView>();
            this.addedTabs = new List<TabView>();
        }

        public void ShowTabInFront(TabView tab) {
            this.showedTabs.Add(tab); 
        }

        public void AddTab(TabView tab) {
            this.addedTabs.Add(tab);
        }

        public void FireOnPropertyChangedEvent(PropertyChangedEventArgs args) {
            this.OnDatabaseParameterChanged(this, args);
        }

        public event RPGSoundmixerGUI.Forms.Events.PropertyChangedHandler OnDatabaseParameterChanged;


        public event TreeItemSelectedHandler OnTreeItemSelected;

        internal void FireTreeItemselectedEvent(TreeItemSelectedEventArgs args) {
            this.OnTreeItemSelected(this, args); 
        }


        
    }
}
